#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLabel>
#include <QTimer>
#include <QPushButton>
#include <QPainter>
#include <QVector>

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

    QVector<QString > path;
    QLabel *label;
    int is_show;
    int index;

    QPushButton *auto_btn;
    QPushButton *previous_btn;
    QPushButton *next_btn;
    QPushButton *pause_btn;
    QTimer *timer;

    void paintEvent(QPaintEvent *event);
public slots:
    void timeout();

    void autoBtn_click();
    void previousBtn_click();
    void nextBtn_click();
    void pauseBtn_click();
};

#endif // MAINWINDOW_H
